import request from '@/pages_temp/utils/request.js'


export function login(code) {
	request.config.reqCheck = false
	const res = request.get("wx/user/code/" + code)
	request.resetConfig()
	return res
}

export function getUser() {
	return request.get('wx/user')
}

export function updateUserPhone(code) {
	return request.post('wx/user/phone/' + code)
}

export function updateUserFrom(from) {
	return request.post('wx/user/from', {
		from
	})
}
